package com.activity.bean;



import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.Arrays;

public class OpusBean {

    /**
     * workstags : 标签1,标签2,标签3
     * workspics : https://vanorchy-resouces.oss-cn-shanghai.aliyuncs.com/works/w1.png|https://vanorchy-resouces.oss-cn-shanghai.aliyuncs.com/works/w2.png
     * workspraisenum : 0
     * worksid : 1
     * worksreplynum : 0
     * worksaddtime : 2019-06-24 07:25:53
     * workstitle : 作品标题1
     * workscontent : 上海迪斯尼，三刷~管理还是不错的，进停车场的时候车不是很多
     * worksuserid : 1
     */
    private  String workifpraise;

    public String getWorkifpraise() {
        return workifpraise;
    }

    public void setWorkifpraise(String workifpraise) {
        this.workifpraise = workifpraise;
    }
    private String workstags;
    private String workspics;
    private String workspraisenum;
    private String worksid;
    private String worksreplynum;
    private String worksaddtime;
    private String workstitle;
    private String workscontent;
    private String worksuserid;
    private String workscategoryparentid;

    public String getWorkscategoryparentid() {
        return workscategoryparentid;
    }

    public void setWorkscategoryparentid(String workscategoryparentid) {
        this.workscategoryparentid = workscategoryparentid;
    }

    public String getWorkssizes() {
        return workssizes;
    }

    public void setWorkssizes(String workssizes) {
        this.workssizes = workssizes;
    }

    private  String workssizes;
    private String usernickname;
    private String usericon;

    public String getUsernickname() {
        return com.example.apple.ddhr_new.utils.StringUtil.utfString(usernickname);

    }

    public void setUsernickname(String usernickname) {
        this.usernickname = usernickname;
    }

    public String getUsericon() {
        return usericon;
    }

    public void setUsericon(String usericon) {
        this.usericon = usericon;
    }

    public ArrayList<String> images(){
        if(workspics==null)
            return new ArrayList<>();
        else {
            return new ArrayList<String>(Arrays.asList(StringUtils.split(workspics,"|")));
        }
    }
    public ArrayList<String> imageSizes(){
        if(workssizes==null)
            return new ArrayList<>();
        else {
            return new ArrayList<String>(Arrays.asList(StringUtils.split(workssizes,"|")));
        }
    }
    public ArrayList<String> tags(){
        if(workstags==null)
            return new ArrayList<>();
        else {
            return new ArrayList<String>(Arrays.asList(StringUtils.split(workstags,",")));
        }
    }
    public String getWorkstags() {
        return workstags;
    }

    public void setWorkstags(String workstags) {
        this.workstags = workstags;
    }

    public String getWorkspics() {
        return workspics;
    }

    public void setWorkspics(String workspics) {
        this.workspics = workspics;
    }

    public String getWorkspraisenum() {
        return workspraisenum;
    }

    public void setWorkspraisenum(String workspraisenum) {
        this.workspraisenum = workspraisenum;
    }

    public String getWorksid() {
        return worksid;
    }

    public void setWorksid(String worksid) {
        this.worksid = worksid;
    }

    public String getWorksreplynum() {
        return worksreplynum;
    }

    public void setWorksreplynum(String worksreplynum) {
        this.worksreplynum = worksreplynum;
    }

    public String getWorksaddtime() {
        return worksaddtime;
    }

    public void setWorksaddtime(String worksaddtime) {
        this.worksaddtime = worksaddtime;
    }

    public String getWorkstitle() {
        return com.example.apple.ddhr_new.utils.StringUtil.utfString(workstitle);

    }

    public void setWorkstitle(String workstitle) {
        this.workstitle = workstitle;
    }

    public String getWorkscontent() {
        return com.example.apple.ddhr_new.utils.StringUtil.utfString(workscontent);

    }

    public void setWorkscontent(String workscontent) {

        this.workscontent = workscontent;
    }

    public String getWorksuserid() {
        return worksuserid;
    }

    public void setWorksuserid(String worksuserid) {
        this.worksuserid = worksuserid;
    }
}
